<?php echo $this->Form->create('User', array('url' => '/ajax/view')); ?>
    <?php echo $this->Ajax->autoComplete('Post.subject', '/Ciedes/ajaxautocomplete', array('extraParams'=>$idCategoria )); ?>
    <?php echo $this->Form->end('View Post'); ?>